<div ng-controller="LuckydrawCtrl" ng-init="addAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/luckydraw/list">{{draw_data.title?draw_data.title:'抽奖'}}</a></li>
        <li class="active">
            {{!draw_id?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="Tradeform" class="sui-form form-horizontal" novalidate>
        <div>
            <div class="stepbody">
                <div class="control-group">
                    <label class="control-label v-top">
                        活动名称：
                    </label>
                    <div class="controls">
                        <input id="title" type="text" name="name" ng-model="draw_data.name" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label v-top">
                        副标题：
                    </label>
                    <div class="controls">
                        <input id="remark" type="text" name="remark" ng-model="draw_data.remark" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label v-top">
                        设置数字：
                    </label>
                    <div class="controls">
                        <input name="guess_number" ng-model="draw_data.guess_number" value="1" required>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label v-top">
                        抽奖次数：
                    </label>
                    <div class="controls">
                        <input name="lottery_number" ng-model="draw_data.lottery_number" value="1" required>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        起始时间：
                    </label>
                    <div class="controls">
                        <input id="start_time" ng-model="draw_data.start_time" datetimepicker name="start_time" required>
                        <span class="float_left" style="width:10px;">至</span>
                        <input id="end_time" ng-model="draw_data.end_time" datetimepicker name="end_time" required>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label v-top">
                        活动介绍：
                    </label>
                    <div class="controls">
                        <ueditor ng-model="draw_data.introduce" uid="drawdataintroduce" style="width:694px"></ueditor>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label v-top">
                        活动介绍1：
                    </label>
                    <div class="controls">
                        <ueditor ng-model="draw_data.introduce1" uid="drawdataintroduce1" style="width:694px"></ueditor>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label v-top">
                        活动介绍2：
                    </label>
                    <div class="controls">
                        <ueditor ng-model="draw_data.introduce2" uid="drawdataintroduce2" style="width:694px"></ueditor>
                    </div>
                </div>
            </div>
            <div>
                <button id="huodongAdd" class="sui-btn btn-primary" ng-click="drawAdd();">
                    保存
                </button>
            </div>
        </div>
    </form>
</div>